package 剑指offer;

import org.junit.Test;

public class 左旋转字符串 {

    public String reverseLeftWords(String s, int n) {
        String left = s.substring(0, n);
        String right = s.substring(n, s.length());
        return right+left;
    }
    @Test
    public void test(){
        String s="abcdefg";
        //左闭右开 从索引位置开始
        System.out.println(s.substring(0,2));
    }
}
